package formbeans;

import java.util.ArrayList;
import java.util.List;

import org.mybeans.form.FormBean;

public class ImportEntityForm extends FormBean {

	private String className;
	private String type;
	
	public String getClassName() {
		return className;
	}
	public String getType() {
		return type;
	}

	public void setClassName(String className) {
		this.className = trimAndConvert(className, "<>\"");
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public List<String> checkImportEntityFormErrors(){
		List<String> errors = new ArrayList<String>();
		
		if(className == null || className.length() == 0){
			errors.add("Please enter the name of Node Class");
		}
		
		return errors;
	}
}